package com.gz.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gz.seckill.dao.GoodsDao;
import com.gz.seckill.pojo.Goods;
import com.gz.seckill.service.GoodsService;
import com.gz.seckill.vo.GoodsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements GoodsService {

    @Resource
    private GoodsDao goodsDao;

    @Override
    public List<GoodsVo> findGoodsVo() {
        return goodsDao.findGoodsVo();
    }

    @Override
    public GoodsVo findGoodsVoByGoodsId(Long goodsId) {
        return goodsDao.findGoodsVoByGoodsId(goodsId);
    }


}
